/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2025-06-07 02:20:07
 * @LastEditors: sueRimn
 * @LastEditTime: 2025-08-06 20:47:17
 */
#ifndef _LED_H
#define _LED_H

#include "main.h"

#define LED_BLUE_LIGHT  TIM4->CCR1
#define LED_RED_LIGHT   TIM4->CCR2
#define LEDG_REEN_LIGHT TIM4->CCR3

#define LED_BLUE_LIGHT_MAX  400
#define LED_RED_LIGHT_MAX   200
#define LEDG_REEN_LIGHT_MAX 500

#define LED_BLUE_LIGHT_STEP     (LED_BLUE_LIGHT_MAX / 100)
#define LED_RED_LIGHT_STEP      (LED_RED_LIGHT_MAX / 100)
#define LEDG_REEN_LIGHT_STEP    (LEDG_REEN_LIGHT_MAX / 100)

typedef enum{
    LED_OFF = 0,
    LED_ON,
    LED_BREA,
    LED_NULL,//表示忽略此灯
}_LED_STAT;

void ledTimeCallback(void);
void led_init(void);
void ledRunTask(void);
void setLedStat(uint8_t ucBlueLedStat, uint8_t ucRedLedStat,uint8_t ucGreenLedStat);
#endif